package com.TaskOrganizer.actions;

import java.awt.event.ActionEvent;

import javax.swing.Action;

import com.TaskOrganizer.dialogs.AddTaskDialog;

public class AddTask extends DefaultAction {

	private static final long serialVersionUID = -1523181140671769181L;

	public AddTask() {
		super();
		putValue(Action.NAME, "Add Task");
		putValue(Action.SMALL_ICON, getIcon("/com/TaskOrganizer/icons/"
				+ getValue(Action.NAME).toString().toLowerCase() + ".png"));
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
		new AddTaskDialog();
	}

}
